{extends 'package_general.html'}
{block name="main"} 		
		<div id="content-table-inner">
			<!--  start table-package  -->
			<div id="table-content">
				<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="ctlr_packageimagex-act_select" method="post">
					<input type="hidden" name="id" value="{$package->id}">
					<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
						<tr>
							<th class="table-header-check"><a id="toggle-all" ></a> </th>
							<th class="table-header-repeat line-left minwidth-1"><a href="">Name</a></th>
							<th class="table-header-repeat line-left minwidth-1"><a href="">Image</a></th>
							<th class="table-header-options line-left"><a href="">Options</a></th>
						</tr>
						{section name=nr loop=$imagexs}
						<tr {if $smarty.section.nr.iteration is odd} class="alternate-row"{/if}>
							<td><input name="imagex_ids[]" value="{$imagexs[nr].id}" type="checkbox"/></td>
							<td>{$imagexs[nr].name}</td>
							<td><img src="{$upload}{$imagexs[nr].path}" alt="{$imagexs[nr].title}" width="150px" height="90px"/></td>
							<td class="options-width">
								<a href="ctlr_packageimagex-act_unassign?id={$package->id}&imagex_id={$imagexs[nr].id}" title="delete" class="icon-2 info-tooltip"></a>
							</td>
						</tr>
						{sectionelse}
						<tr><td colspan="4" align="center"><br><b>no imagexs found. </b> <br> </td></tr>
						{/section}				
					</table>
				<!--  end product-table................................... --> 
				</form>
			</div>
			<!--  end imagex-table  -->
		
			<!--  start actions-box ............................................... -->
			<div id="actions-box">
				<a href="" class="action-slider"></a>
				<div id="actions-box-slider">
					<a href="" onclick="document.forms['mainform'].submit();return false;" class="action-edit">assign</a>
				</div>
				<div class="clear"></div>
			</div>
			<!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			<table border="0" cellpadding="0" cellspacing="0" id="paging-table">
			<tr>
			<td>
				<a href="#" class="page-far-left"></a>
				<a href="#" class="page-left"></a>
				<div id="page-info">Page <strong>1</strong> / 15</div>
				<a href="#" class="page-right"></a>
				<a href="#" class="page-far-right"></a>
			</td>
			<td>
			<select  class="styledselect_pages">
				<option value="">Number of rows</option>
				<option value="">1</option>
				<option value="">2</option>
				<option value="">3</option>
			</select>
			</td>
			</tr>
			</table>
			<!--  end paging................ -->
			<div class="clear"></div>
		</div>
{/block}		